﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElingOA6_Admin_DSJCJ.Model
{
    /// <summary>
    /// 系统参数
    /// </summary>
    [Serializable]
    public partial class HRDept
    {
        public HRDept()
        {
            FIsReportPlanSummary = "N";
            FIsCheckSystem = "N";
        }
        #region Model
        private string _fentityno;
        private string _fdeptno;
        private string _fdeptname;
        private string _fisagency;
        private string _fdeptprop;
        private int _fseq = 0;
        private string _fchargeleader;
        private string _fparentdeptno;
        private string _fiseval = "Y";
        /// <summary>
        /// 
        /// </summary>
        public string FEntityNo
        {
            set { _fentityno = value; }
            get { return _fentityno; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FDeptNo
        {
            set { _fdeptno = value; }
            get { return _fdeptno; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FDeptName
        {
            set { _fdeptname = value; }
            get { return _fdeptname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FIsAgency
        {
            set { _fisagency = value; }
            get { return _fisagency; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FDeptProp
        {
            set { _fdeptprop = value; }
            get { return _fdeptprop; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int FSeq
        {
            set { _fseq = value; }
            get { return _fseq; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FChargeLeader
        {
            set { _fchargeleader = value; }
            get { return _fchargeleader; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FParentDeptNo
        {
            set { _fparentdeptno = value; }
            get { return _fparentdeptno; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FIsEval
        {
            set { _fiseval = value; }
            get { return _fiseval; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FUnionScoreType
        {
            set;
            get;
        }
        /// <summary>
        /// 需要上报计划总结
        /// Y - 是
        /// N - 否
        /// </summary>
        public string FIsReportPlanSummary
        {
            set;
            get;
        }
        /// <summary>
        /// 参与网上考核
        /// Y - 是
        /// N - 否
        /// </summary>
        public string FIsCheckSystem
        {
            set;
            get;
        }
        #endregion Model


        #region 增加的字段

        private string _fparentDeptName;
        /// <summary>
        /// 
        /// </summary>
        public string FParentDeptName
        {
            get { return _fparentDeptName; }
            set { _fparentDeptName = value; }
        }

        private string _fchargeleaderName;
        /// <summary>
        /// 
        /// </summary>
        public string FChargeLeaderName
        {
            set { _fchargeleaderName = value; }
            get { return _fchargeleaderName; }
        }

        private string _fislast;
        /// <summary>
        /// 是否是叶子结点
        /// </summary>
        public string FIsLast
        {
            set { _fislast = value; }
            get { return _fislast; }
        }


        private int _level;
        /// <summary>
        /// 节点深度
        /// </summary>
        public int LEVEL
        {
            set { _level = value; }
            get { return _level; }
        }

        private string _selecthtml;
        public string SelectHtml
        {
            get { return _selecthtml; }
            set { _selecthtml = value; }
        }

        private string _fdeptShortName;
        public string FDeptShorName
        {
            get
            {
                if (string.IsNullOrEmpty(_fdeptShortName))
                {
                    return FDeptName;
                }
                else
                {
                    return _fdeptShortName;
                }
            }
            set
            {
                _fdeptShortName = value;
            }
        }

        //部门完成进度，用于信息排行榜
        public decimal FDeptSchedule
        {
            get;
            set;
        }

        #endregion



    }
}
